import GraphBack from '../../src'
const canvas = document.createElement('canvas')
canvas.style.position = 'fixed'
canvas.style.width = canvas.style.height = '100%'
canvas.style.top = canvas.style.left = '0'
document.body.appendChild(canvas)
// 场景
const scene = new GraphBack.Scene(canvas, { color: 'white' })
const text = new GraphBack.Text({ text: 'TEXT文本测试test', x: 100, y: 100, fill: true, font: '40px serif' })
scene.add(text)
scene.render()

// const ctx = scene.ctx
// ctx.fillText('TEXT文本测试test', 100, 100)
